{% extends "mytemplate.html" %}

{% block diffitems %}
<div id="additems">
    <form id="additems-form" class="form-horizontal" enctype="multipart/form-data" action="/item/add" method="POST">
      <legend>添加商品</legend>
  <div class="control-group">
    <label class="control-label">商品名字:</label>
    <div class="controls">
      <input class="span4" type="text" name="name" id="name" />
      <input type="hidden" name="token" id="token" value="{{token}}" />
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">价格:</label>
    <div class="controls">
      <input type="text" class="span4" name="price" id="price" />
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">标签:</label>
    <div class="controls">
      <input type="text" class="input-small" name="tags" id="tag1"  />
      <input type="text" class="input-small" name="tags" id="tag2"  />
      <input type="text" class="input-small" name="tags" id="tag3"  />
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">描述:</label>
    <div class="controls">
        <textarea class="span4" rows="4" name="descpt" id="descpt" ></textarea>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">图片:</label>
    <div class="controls">
        <input type="file" name="pic" id="pic" /> 
    </div>
  </div>
  <div class="control-group">
    <div class="controls">
        <button type="submit" class="btn btn-large btn-primary btn-large-left">添加商品</button>
    </div>
  </div>
</form>
</div> 

{% endblock %}
